from zope.interface import Interface
# -*- Additional Imports Here -*-
from zope import schema

from my315ok.xtinfocontent import xtinfocontentMessageFactory as _

class Iinfo(Interface):
    """a mark interface for other info types"""
class Iclassinfo(Interface):
    """a class information type"""

    # -*- schema definition goes here -*-
    infocode = schema.TextLine(
        title=_(u"info code"),
        required=False,
        description=_(u""),
    )
#
    category = schema.TextLine(
        title=_(u"category"),
        required=False,
        description=_(u""),
    )
#
    subject = schema.TextLine(
        title=_(u"subject"),
        required=False,
        description=_(u""),
    )
#
    text = schema.Text(
        title=_(u"detail description"),
        required=False,
        description=_(u""),
    )
#
    status = schema.TextLine(
        title=_(u"status"),
        required=False,
        description=_(u""),
    )
#
    price = schema.Float(
        title=_(u"refer price"),
        required=False,
        description=_(u""),
    )
#
    name = schema.TextLine(
        title=_(u"contact person"),
        required=False,
        description=_(u""),
    )
#
    addr = schema.TextLine(
        title=_(u"address"),
        required=False,
        description=_(u""),
    )
#
    phone = schema.TextLine(
        title=_(u"phone number"),
        required=True,
        description=_(u""),
    )
#
    qq = schema.Int(
        title=_(u"QQ number"),
        required=False,
        description=_(u""),
    )
#
    author = schema.TextLine(
        title=_(u"author"),
        required=False,
        description=_(u""),
    )
#
